import instance from "../request"

export const auth = {
    login: (data) => {
        return instance({
            url: '/common/login',
            method: "post",
            data
        })
    },
    logout: (params) => {
        return instance({
            url: '/common/logout',
            method: "get",
            params
        })
    }
}